package cn.itsource.ymcc.mapper;

import cn.itsource.ymcc.domain.CourseOrder;
import cn.itsource.ymcc.query.CourseOrderQuery;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author whale
 * @since 2021-09-23
 */
public interface CourseOrderMapper extends BaseMapper<CourseOrder> {
    //查询用户申请中的订单
    CourseOrder selectUsersApplyOrderByCourseIds(@Param("status") int status, @Param("courseIds") List<Long> courseIds, @Param("userId") Long userId);
    CourseOrder selectByOrderNo(String orderNo);

    long selectCount(CourseOrderQuery query);

    List selectList(CourseOrderQuery query);

    Integer updateById(CourseOrder order);

}
